package com.example.service;

import com.example.pojo.Competition;
import com.example.pojo.CompetitionCategory;

import java.util.List;

public interface CompetitionService {
    void addCategory(CompetitionCategory competitionCategory);

    void add(Competition competition);

    List<Competition> list();

    void delete(Integer id);

    void update(Competition competition);

    Competition detail(Integer id);

    void join(Integer id, Integer userId);

    void cancel(Integer id, Integer userId);

    List<Competition> joined(Integer userId);

    void submit(Integer competitionId, Integer articleId, Integer userId);

    void score(Long submissionId, Integer score);

    Competition findByUserId(Integer id, Integer competitionId);

    Competition findBySubmissionId(Long submissionId);

    List<CompetitionCategory> listCategory();

    void deleteCategory(Integer id);

    void updateCategory(CompetitionCategory competitionCategory);
}
